package com.jcl.reflect;

import cn.hutool.core.util.ReflectUtil;
import com.jcl.reflect.util.MyReflectUtil;

import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;

public class ReflectTest {
    public static void main(String[] args) throws Exception {
        LinkedHashMap<Integer, Class> map = MyReflectUtil.getGenericType(TreeTest.class, new LinkedHashMap<>());
        map.forEach((k, v) -> {
            System.out.println(k + "---" + v.getName());
        });
    }
}
